<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改司机信息</title>
    <link rel="stylesheet" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/style.css">
    <style>
        .layui-form-pane .layui-form-label {
            width: 125px;
        }
    </style>
</head>
<body>
<div id="main">
    <!--<div class="title">-->
        <!--<h3 style="font-weight: bold;">修改司机信息</h3>-->
        <!--<a href="/car/driverInfo" style="float: right;margin-top: -10px;">-->
            <!--<i class="layui-icon layui-icon-return" style="font-size: larger;color: #0000FF;"></i>-->
        <!--</a>-->
        <hr class="layui-bg-green">
    <!--</div>-->
    <form class="layui-form layui-form-pane m-form">
        <!--<fieldset class="layui-elem-field layui-field-title" style="width: 99%;">-->
        <!--<legend style="font-size: 16px;">司机信息</legend>-->
        <!--</fieldset>-->
        <input type="hidden" name="id" th:value="${driver.getId()}">
        <div class="layui-form-item layui-inline">
            <div class="layui-inline">
                <label class="layui-form-label">姓名<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getXM()}" type="text" name="XM" placeholder="请输入姓名" lay-verify="required" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">年龄<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getNL()}" type="text" name="NL" placeholder="请输入年龄" lay-verify="number|required" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label layui-inline">性别<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:selected="${driver.getXB()=='男'}" type="radio" name="XB" value="男" title="男" checked>
                    <input th:selected="${driver.getXB()=='女'}" type="radio" name="XB" value="女" title="女">
                </div>
            </div>
            <div class="layui-inline" style="margin-left: -10px;">
                <label class="layui-form-label">车牌号码<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <select name="CPHM" id="CPHM" lay-filter="CPHM">
                        <option th:text="${driver.getCPHM()}" th:value="${driver.getCPHM()}" value="None">None</option>
                        <option th:each="c:${cphm}" th:text="${c}" th:value="${c}" value="C1">C1</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">出生日期<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getCSRQ()}" type="text" name="CSRQ" id="CSRQ" placeholder="1990-1-1" class="layui-input"
                           lay-verify="required">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">手机号<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getSJH()}" type="text" name="SJH" placeholder="请输入手机号" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">身份证<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getSFZ()}" type="text" name="SFZ" placeholder="请输入身份证号码" class="layui-input" lay-verify="required">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">驾证类型<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <select name="JSZLX" id="JSZLX" lay-verify="required" lay-filter="JSZLX">
                        <option th:selected="${driver.getJSZLX()=='C1'}" value="C1">C1</option>
                        <option th:selected="${driver.getJSZLX()=='C2'}" value="C2">C2</option>
                        <option th:selected="${driver.getJSZLX()=='C3'}" value="C3">C3</option>
                        <option th:selected="${driver.getJSZLX()=='C4'}" value="C4">C4</option>
                        <option th:selected="${driver.getJSZLX()=='B1'}" value="B1">B1</option>
                        <option th:selected="${driver.getJSZLX()=='B2'}" value="B2">B2</option>
                        <option th:selected="${driver.getJSZLX()=='A1'}" value="A1">A1</option>
                        <option th:selected="${driver.getJSZLX()=='A2'}" value="A2">A2</option>
                        <option th:selected="${driver.getJSZLX()=='A3'}" value="A3">A3</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">驾证编号<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getJSZBH()}" type="text" name="JSZBH" placeholder="请输入驾驶证档案编号" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">家庭地址<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <input th:value="${driver.getDZ()}" type="text" name="DZ" placeholder="请输入家庭地址" class="layui-input" lay-verify="required">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">状态<span style="color: red;">*</span></label>
                <div class="layui-input-inline">
                    <select name="ZT" id="ZT" lay-verify="required" lay-filter="ZT">
                        <option th:selected="${driver.getZT()=='空闲'}" value="空闲">空闲</option>
                        <option th:selected="${driver.getZT()=='忙碌'}" value="忙碌">忙碌</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn" lay-submit lay-filter="addD">提交</button>
            <button type="reset" class="layui-btn layui-btn-warm" style="margin-left: -4px;">重置</button>
        </div>
    </form>
</div>
</body>
<script src="../../static/js/jquery-3.4.1.js"></script>
<script src="../../static/layui/layui.js"></script>
<script src="../../static/js/car/style.js"></script>
</html>